package com.pmcc.platform.shopping.entity;


import com.pmcc.core.entity.BaseEntity;
import com.pmcc.platform.shopping.enums.GiftChange;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

@Getter
@Setter
@Entity
@Table(name = "bp_shopping_gift_change_log")
@org.hibernate.annotations.Table(appliesTo = "bp_shopping_gift_change_log", comment = "店铺赠品更新记录")
public class ShoppingGiftChangeLog extends BaseEntity {

    @Column(columnDefinition = "varchar(50) COMMENT '更新记录'")
    @Enumerated(EnumType.STRING)
    private GiftChange giftChange;//活动类型

    @Column(columnDefinition = "varchar(50) COMMENT '导购id'")
    private  String shopId;


    @Column(columnDefinition = "varchar(50) COMMENT '业务员Id'")
    private String  salesmanId;//活动类型为  分配和收会不能为空


    @Column(columnDefinition = "int(11) COMMENT '更新数据'")
    private  int changeNum;

    @Column(columnDefinition = "varchar(50) COMMENT '赠品id'")
    private  String gooodId;
}
